﻿using System;

class ArrayOfTheAlphabet

            // Write a program that creates an array containing all letters from the alphabet (A-Z). 
            // Read a word from the console and print the index of each of its letters in the array.

{
    static void Main()
    {
        Console.Write("Enter a given word: ");
        string word = Console.ReadLine();
        string[] alphabet = new string[26];

        for (int i = 0; i < 26; i++)
        {
            alphabet[i] = ((char)(i + (int)'A')).ToString();
        }
        for (int i = 0; i < word.Length; i++)
        {
            int index = Convert.ToInt32(word[i]);
            Console.WriteLine("The letter '{0}' has ASCII index: {1}", word[i], index);
        }
    }
}

